<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">

<div class="container-fluid">
	<div class="row">
		<div class="panel panel-default">
			<div class="panel-heading">
				<span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> 条件查找
			</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">结算状态</div>
								<div class="col-md-7">
									<select id="status" name="status" class="form-control">
										<option Value="">全部</option>
										<option Value="1">待结算</option>
										<option Value="2">已结算</option>
										<option Value="3">已打款</option>
									</select>
								</div>
							</div>
						</div>
					</div>

					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">结算时间</div>
								<div class="col-md-7">
									<input type="text" class="form-control" runat="server" id="settlementTime"
										   name="settlementTime" />
								</div>
							</div>
						</div>
					</div>

					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">流水号</div>
								<div class="col-md-7">
									<input type="text" class="form-control" runat="server" id="settlementNo"
										   name="settlementNo" />
								</div>
							</div>
						</div>
					</div>
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">收益来源</div>
								<div class="col-md-7">
									<select id="dtype" name="dtype" class="form-control">
										<option Value="">全部</option>
										<option Value="1">广告收益</option>
										<option Value="2">分销收益</option>
									</select>
								</div>
							</div>
						</div>
					</div>
				</div>


				<div class="row">
					<div class="col-lg-3 col-sm-8 col-xs-8 col-xxs-12">
						<div class="form-horizontal">
							<div class="form-group">
								<div class="col-md-3 control-label" for="select">用户口令</div>
								<div class="col-md-7">
									<input type="text" class="form-control" runat="server" id="word"
										   name="word" />
								</div>
							</div>
						</div>
					</div>

				</div>



				<!--查询 按钮-->
			</div>
		</div>
	</div>

	<!--/col-->
</div>
<!--/条件查找-->
</div>
	<div class="wrapper wrapper-content ">
		<div class="col-sm-12">
			<div class="ibox">
				<div class="ibox-body">
					<div class="fixed-table-toolbar">
						<div class="columns pull-left">
							<button  type="button" class="btn  btn-success" onclick="reLoadStatus(1)" id="count1">
								待结算
							</button>
							<button  type="button" class="btn  btn-primary" onclick="reLoadStatus(2)" id="count2">
								已结算
							</button>
							<button  type="button" class="btn  btn-default" onclick="reLoadStatus(3)" id="count3">
								已打款
							</button>
							<button shiro:hasPermission="wallpaper:settlemendaysBill:add" type="button" class="btn  btn-primary" onclick="add()">
								<i class="fa fa-plus" aria-hidden="true"></i>添加结算单
							</button>
							<button shiro:hasPermission="wallpaper:settlemendaysBill:add" type="button" onclick="addWallet()" class="btn  btn-primary">
								<i class="fa fa-money" aria-hidden="true"></i>入账钱包
							</button>
							<button shiro:hasPermission="wallpaper:settlemendaysBill:batchRemove" type="button" class="btn  btn-danger"
								onclick="batchRemove()">
								<i class="fa fa-trash" aria-hidden="true"></i>删除
							</button>
						</div>
						<div class="columns pull-right">
							<button class="btn btn-success" onclick="reLoad()">查询</button>
						</div>
						<div class="columns pull-right">
							<button class="btn btn-default" onclick="restLoad()" style="margin-right: 20px;">重置</button>
						</div>
						<div class="columns pull-right col-md-2 nopadding">

						</div>
					</div>
					<table id="exampleTable" data-mobile-responsive="true">
					</table>
				</div>
			</div>
		</div>
	</div>
	<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
		<div>
			<script type="text/javascript">
				var s_edit_h = 'hidden';
				var s_remove_h = 'hidden';
				var s_resetPwd_h = 'hidden';
			</script>
		</div>
		<div shiro:hasPermission="wallpaper:settlemendaysBill:edit">
			<script type="text/javascript">
				s_edit_h = '';
			</script>
		</div>
		<div shiro:hasPermission="wallpaper:settlemendaysBill:remove">
			<script type="text/javascript">
				var s_remove_h = '';
			</script>
		</div>
		<div shiro:hasPermission="wallpaper:settlemendaysBill:resetPwd">
			<script type="text/javascript">
				var s_resetPwd_h = '';
			</script>
		</div>
	</div>
	<div th:include="include :: footer"></div>
	<script type="text/javascript" src="/js/appjs/wallpaper/settlemendaysBill/settlemendaysBill.js" th:src="@{/js/appjs/wallpaper/settlemendaysBill/settlemendaysBill.js}"></script>

<script th:inline="javascript">
	var platformTypes = [[${platform_type}]];
</script>

<script>

	layui.use(['upload','laydate'], function () {

		layui.laydate.render({
			elem: '#settlementTime' //指定元素
			,type:'date'
			/*,range: true*/
			,format:'yyyy-MM-dd'//默认格式
			,value: ''//初始默认时间 2020-02-22
			,min: '2017-1-1'
			,max:  0
			,theme: '#393D49'
			,ready: function(date){
				console.log(date); //得到初始的日期时间对象：{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
			}
			,change: function(value, date, endDate){
				console.log(value); //得到日期生成的值，如：2017-08-18
			}
			,done: function(value, date, endDate){
				console.log(value); //得到日期生成的值，如：2017-08-18

			}
		});


	})



</script>
</body>
</html>